
function initLayout(){
  var window_width = jQuery(window).width();

  wrapper_width = Math.floor( window_width - 680 );
  if ( window_width = 1440 ) {

    jQuery('.box_content').css("width", wrapper_width + "px" );
  } else {
    jQuery('.box_content').css("width", "644px" );
  }
}

function resort(){
/*
  jQuery('#masonry').imagesLoaded(function(){

   jQuery('#masonry').masonry({
    itemSelector : '.one_short_item',
    isResizable: false,
    
  });
  
  }); */


}

 jQuery(document).ready(function(){

  initLayout();
  //if((jQuery('.advert_row').html()==null)||(get_cookie('advert_view')!='list'))resort();  


});

jQuery(window).resize(function(){

  initLayout();
 // resort();

});
   